﻿using Koala.Pro.Common;
using Koala.Pro.Core.Dto;
using Koala.Pro.Core.Models;
using Koala.Pro.Models;

namespace Koala.Pro.Services
{
    public interface ILoginLogService : IMyCrudService<LoginLogInfo, int, LoginLogPagedDto>, ITransientDependency, IDependency
    {
        Task<bool> AddLoginLog(UserInfo userInfo, string systemType, string note, string ip = null, string macAddr = null);

        Task<LoginLogInfo> GetLastLoginInfo(string userId);

        Task<bool> DeleteMonthLog();
    }
}
